package cn.hxzy.common.response;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum StatusEnum {

    SUCCESS(200 ,"请求处理成功"),
    UNAUTHORIZED(401 ,"用户认证失败"),
    FORBIDDEN(403 ,"权限不足"),
    SERVICE_ERROR(500, "服务器异常"),
    PARAM_INVALID(1000, "无效参数"),
    //自定义名(自定义响应码,自定义响应信息)
    CUOWU_REPEAT(333,"身份证有误或者学生信息已存在");


    public final Integer code;//响应码
    public final String message;//响应信息
}
